<h2 class="sub-header">Section title</h2>
          <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>#</th>
                  <th>Title</th>
                  <th>Body</th>
                  <th>Thumbnail</th>
                  <th>Option</th>
                </tr>
              </thead>
             
              <tbody>
               <?php
               $output=''; 
              	foreach ($allCreatedPosts as $key => $value) {
					$output.='<tr>';
					$output.='<td>'.$key.'</td>';
					$output.='<td>'.$value['Post']['title'].'</td>';
					$output.='<td>'.$value['Post']['body'].'</td>';
					$output.='<td>'.$value['Post']['thumbnail'].'</td>';
					//$output.='<td>'.$value['Post']['created'].'</td>';
					//$output.='<td>'.$value['Post']['modified'].'</td>';
					$output.='<td><a href="/adminposts/edit/'.$value['Post']['id']
					.'" >Edit</a> <a href="/adminposts/delete/'.$value['Post']['id']
					.'" >Del</a>'.'</td>';
					$output.='</tr>';

				}
				echo $output;
              
              
              ?>
                
         </tbody>
     </table>
 </div>